<template>
    <div class="left_span" @click="show()"><span><img src="../../assets/images/header/list.png" alt=""></span>
          <div class="plus_box" v-show="view">
          <div class="link_box"><router-link to="/product">智慧家庭</router-link>
          <router-link to="/product">个人与家用产品</router-link>
          <router-link to="/product">购买与服务</router-link>
          <router-link to="/product">关于海尔</router-link></div>
          </div>
    </div>
</template>

<script>
export default{
  data(){
    return{
      view:false
    }
  },
  methods:{
      show(){
        this.view=!this.view;
      }
    }
}
</script>

<style scoped>
  .left_span{
    width:30%;
  }
  .left_span img{
    width:22px;
  }
   .plus_box{
    width: 100%;
    height: 667px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 4;
  }
  .link_box>a{
    display: block;
    width: 100%;
    line-height: 50px;
    text-align: left;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    padding-left: 10px;
    text-decoration: none;
    border-top: 1px solid lightgray;
    background: #fff;
  }
  .link_box>.router-link-active{
    border-top:2px solid lightgray;
    background: #fff;
  }
</style>

